<f:view xmlns="http://www.w3.org/1999/xhtml" 
    xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:tr="http://myfaces.apache.org/trinidad"
	xmlns:trh="http://myfaces.apache.org/trinidad/html"
    xmlns:ppc="http://www.sungard.de/carnot/web/portal-plugin/common">
    
	<f:loadBundle basename="ProcessPortalMessages" var="localeBundle" />
    <f:loadBundle basename="CommonMessages" var="commonMsg" />

    <trh:html>
    
    	<trh:head title="#{localeBundle.carnotTitle}">
    	
			<link href="#{facesContext.externalContext.requestContextPath}/carnot/processportal/100pct/100pct-process-portal-layout.css" rel="stylesheet" type="text/css" />

            <c:if test="#{not empty infinityPortalCustomization.processPortalLayoutCustomHeaderContentUri}">
               <ui:include src="#{infinityPortalCustomization.processPortalLayoutCustomHeaderContentUri}" />
            </c:if>
    	
    	</trh:head>

	<trh:body id="processPortal">

        <trh:script source="util.js" type="text/javascript"/>
		<tr:form id="processPortalForm"
            usesUpload="#{portalHeader.processPortalSession.activityPanelVisible and pageFlowScope.carnotActivityUsesUpload ? true : false}">

            <c:if test="#{not empty infinityPortalCustomization.processPortalLayoutCustomInvisibleFormContentUri}">
               <ui:include src="#{infinityPortalCustomization.processPortalLayoutCustomInvisibleFormContentUri}" />
            </c:if>
            
            <ui:include src="/carnot/include/common/bpm-web-ui-events.xhtml" />
            
            <table class="ippLayout_container"
            	cellspacing="0" cellpadding="0">
            	<colgroup>
            		<col />
            		<col />
            	</colgroup>
            
            	<tr class="ippLayout_header">
            		<td class="ippLayout_header" colspan="2"
            			height="1">
            			<ui:include src="#{procPortal_header}" />
            		</td>
            	</tr>

   				<tr class="ippLayout_appMenu">
   					<td class="ippLayout_appMenu" colspan="2"
   						height="1">
						<ui:include src="#{procPortal_appMenu}" />
  					</td>
   				</tr>
            	
            	<tr class="ippLayout_main">
					<c:if test="#{processPortalSettings.hideWorklistIfActivityIsVisible ? not portalHeader.processPortalSession.activityPanelVisible : true}">
	   					<td class="ippLayout_leftMenu" valign="top">
	                        <tr:panelSideBar inlineStyle="width: 100%; overflow: auto;"
	                            partialTriggers=":taskTable:refreshTrigger :bpmEvents:refreshEvent:full :bpmEvents:refreshEvent:workarea">
	
							    <ui:include src="#{procPortal_leftMenu}" />
	                        </tr:panelSideBar>	
	   					</td>
					</c:if>

   					<td class="ippLayout_content" valign="top"
   						colspan="#{processPortalSettings.hideWorklistIfActivityIsVisible and not portalHeader.processPortalSession.activityPanelVisible ? 1 : 2 }">
						<ui:include src="#{procPortal_workarea}" />
   					</td>

            	</tr>
            	
            	<tr class="ippLayout_footer">
            		<td class="ippLayout_footer" colspan="2"
            			height="1">
            			<div>
            				<ui:include src="#{procPortal_copyright}" />
            			</div>
            		</td>
            	</tr>
            </table>

		</tr:form>

	</trh:body>
	
	</trh:html>

</f:view>
